<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Alnum
 *
 * @author chaporgin_a
 */
class VA_Form_Validator_Numeric extends VA_Form_Validator {
  public function isValid($value) {
    $this->errorMessages = array();
    if(is_numeric($value)) {
      $this->errorMessages[] = 'Введите число';
      return TRUE;
    }
    return FALSE;
  }

  public function getHTMLTagAttributes() {
    return array('number' => array('true'));
  }
}

